package site.luojie.repository;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import site.luojie.entity.Resume;

/**
 * @author jie.luo
 * @since 2020/12/29
 */
@Repository
public interface ResumeRepository extends MongoRepository<Resume, String> {


    /**
     * 根据 description 进行全文检索
     *
     * @param description
     * @param page
     * @return
     */
    Page<Resume> findByDescriptionLike(String description, Pageable page);

}
